Test\Integration\CustomerTest A

Total Complexity 71
Dependencies 18
Dependents 0
Total lines 1,583
Lines of code 1,379
Logical lines of code 545
Comment lines 0
Methods 71
Properties 0

Methods 71

Method Rating Maintainability Complexity Lines of code
testUpdateFromTransparentRedirect_withUpdateExisting()
S
42 1 58
testCreate_withCreditCardAndBillingAddress()
S
42 1 56
testUpdate_forBillingAddressAndExistingCreditCardAndCustomerDetailsTogether()
S
44 1 48
testUpdateDefaultPaymentMethodFromOptions()
S
47 1 40
testUpdate_withCountry()
S
47 1 40
testUpdate_withUpdatingExistingCreditCard()
S
48 1 35
testUpdate_worksWithOrderPaymentPayPalNonceWithPayeeEmail()
S
49 1 34
testCreate_withCreditCard()
S
48 1 33
testUpdateDefaultPaymentMethod()
S
50 1 30
testUpdate()
S
50 1 30
testCreate_withCreditCardAndSpecificVerificationMerchantAccount()
S
49 1 30
testUpdateNoValidate()
S
50 1 29
testUpdate_worksWithOrderPaymentPayPalNonce()
S
51 1 29
testUpdate_doesNotWorkWithOnetimePayPalNonce()
S
51 1 28
testUpdate_worksWithFuturePayPalNonce()
S
52 1 27
testCreate_withDuplicateCardCheck()
S
51 1 27
testCreateFromTransparentRedirect()
S
53 1 25
testCreateFromTransparentRedirect_withParamsInTrData()
S
53 1 25
testCreateFromTransparentRedirect_withValidationErrors()
S
53 1 24
testCreate_withCountry()
S
53 1 23
testCreate_worksWithOrderPaymentPayPalNonceWithPayeeEmail()
S
53 1 23
testUpdate_failOnDuplicatePaymentMethod()
S
54 1 22
testCreate_withCreditCardAndVerificationAmount()
S
54 1 22
testUpdateFromTransparentRedirect_withParamsInTrData()
S
55 1 21
testUpdateFromTransparentRedirect()
S
55 1 21
testCreate()
S
54 1 21
testCreate_withUnicode()
S
54 1 21
testFind()
S
55 1 20
testCreate_withValidationErrors()
S
55 1 19
testCreateCustomerWithCardUsingNonce()
S
56 1 19
testCreateWithAccessToken()
S
55 1 19
testCreateCustomerWithUsBankAccount()
S
56 1 18
testUpdateFromTransparentRedirect_withValidationErrors()
S
56 1 18
test_findUsBankAccountGivenPaymentMethodToken()
S
55 1 18
testUpdate_withNewCreditCardAndExistingBillingAddress()
S
57 1 17
testGatewayCreate()
S
57 1 17
testCredit_createsACreditUsingGivenCustomerId()
S
57 1 17
testCreate_withRiskData()
S
58 1 16
testCreditNoValidate_createsACreditUsingGivenId()
S
58 1 16
testCreate_withVenmoSdkSession()
S
58 1 16
testSale_createsASaleUsingGivenToken()
S
58 1 16
testSaleNoValidate_createsASaleUsingGivenToken()
S
59 1 15
testCreateCustomerWithVenmoAccount()
S
58 1 15
testCreate_withFraudParams()
S
59 1 14
testCreateCustomerWithAndroidPayProxyCard()
S
59 1 14
testCreate_worksWithOrderPaymentPayPalNonce()
S
60 1 14
testUpdate_withNewCreditCardAndVerificationAmount()
S
60 1 14
testCreateCustomerWithAmexExpressCheckoutCard()
S
59 1 14
testCreateCustomerWithAndroidPayNetworkToken()
S
59 1 14
testCreditNoValidate_throwsIfInvalid()
S
61 1 13
testCreate_countryValidations_inconsistency()
S
60 1 13
testCreateCustomerWithCoinbase()
S
60 1 13
testSaleNoValidate_throwsIfInvalid()
S
61 1 13
testCreate_withVenmoSdkPaymentMethodCode()
S
61 1 12
testCreate_withCustomFields()
S
63 1 11
createCustomerViaTr()
S
63 1 11
updateCustomerViaTr()
S
63 1 11
testAll_smokeTest()
S
75 1 4
testCreateWithValidUTF8Bytes()
S
66 1 8
testCreateWithInvalidUTF8Bytes()
S
66 1 8
testFind_throwsExceptionIfNotFound()
S
76 1 4
testDelete_deletesTheCustomer()
S
66 1 8
testAllWithManyResults()
S
68 1 7
testCreate_worksWithFuturePayPalNonce()
S
68 1 7
testCreateNoValidate_throwsIfInvalid()
S
74 1 4
testCreateNoValidate_returnsCustomer()
S
66 1 8
testCreate_withSpecialChars()
S
71 1 5
testCreate_blankCustomer()
S
67 1 8
testCreateCustomerWithApplePayCard()
S
63 1 10
testCreateWithIdOfZero()
S
63 1 10
testCreate_doesNotWorkWithOnetimePayPalNonce()
S
64 1 9